
<template>
  <!-- 导入 -->
  <div>
    <avue-radio
      :button="true"
      v-model="billType"
      :dic="dic"
    ></avue-radio>
    <CreateBankBill v-if="billType === '1'" @close="handleClose"/>
    <CreateLongCycle v-else @close="handleClose"/>
  </div>
</template>

<script>
import { fetchList, getObj, addObj, putObj, delObj } from '@/api/rca/swckbankcashpaymentnote';
import { tableOption } from '@/const/crud/rca/swckbankcashpaymentnote';
import CreateBankBill from './CreateBankBill.vue';
import CreateLongCycle from './CreateLongCycle.vue';

export default {
  name: "Create",
  components: {
    CreateBankBill,
    CreateLongCycle
  },
  data () {
    return {
      billType: "1",
      dic: [
        {
          label: "银行单据录入",
          value: "1",
        },
        {
          label: "长周期结算",
          value: "2",
        },
      ],
    };
  },
  props: ["dialogImportVisible", "defaultBank"],
  methods: {
    handleClose () {
      this.$emit("close");
    },
    handleCancel () {
      this.handleClose();
    },
  },
};
</script>
<style lang="scss">
</style>
